import axios from 'axios'
import MockAdapter from 'axios-mock-adapter'

function mockInit() {
    let mock = new MockAdapter(axios)
    mock.onAny("/api/user/get/1").reply(200, {
        code: 200,
        msg: '',
        user: {
            id: 1,
            name: '张三'
        }
    })
}

export default mockInit
